<?php
    header("Content-type:text/html;charset=utf-8");

     //获取请求过来的数据
    $getNewId = $_POST['newId'];
    $getNewPwd = $_POST['newPwd'];

   

    
    //连接数据库
    $newCon = mysql_connect("localhost","root","root");
   
    if($newCon){
        mysql_select_db("id");
        mysql_query("insert into xiaomi values('$getNewId', '$getNewPwd')");
    };

  
    mysql_close($newCon);
?>